package edu.scau.misp.backend_module.domain;

import java.io.Serializable;

public class OrderTable implements Serializable {

    private Long orderTableId;
    private Long orderId;
    private Long tableId;

    private Table table;
    private Order order;

    public Long getOrderTableId() {
        return orderTableId;
    }

    public void setOrderTableId(Long orderTableId) {
        this.orderTableId = orderTableId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getTableId() {
        return tableId;
    }

    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }

    public Table getTable() {
        return table;
    }

    public void setTable(Table table) {
        this.table = table;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    @Override
    public String toString() {
        return "OrderTable{" +
                "orderTableId=" + orderTableId +
                ", orderId=" + orderId +
                ", tableId=" + tableId +
                ", table=" + table +
                ", order=" + order +
                '}';
    }

    public OrderTable(Long orderTableId, Long orderId, Long tableId, Table table, Order order) {
        this.orderTableId = orderTableId;
        this.orderId = orderId;
        this.tableId = tableId;
        this.table = table;
        this.order = order;
    }

    public OrderTable() {
    }
}
